Skip to content

Comments

Jpeg2000 data encoding and bitmap support#4

Open
runk wants to merge 3 commits intoveech:masterfrom
runk:jp2-encoding
Open

Jpeg2000 data encoding and bitmap support#4
runk wants to merge 3 commits intoveech:masterfrom
runk:jp2-encoding

Conversation

@runk
Copy link

@runk runk commented Jan 6, 2023

Apologies for the sheer amount of changes, if you think it's too overwhelming I'm going to split it up into several smaller self-contained PRs.

What is your take on tests, it feels like complexity is raising, should I add some for the relevant changes?

Copy link
Owner

@veech veech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it took so long to get to this. I had no idea there was an open pull request.

I actually ended up converting my project over to Python specifically because I didn't want to implement the Jpeg2000 encoding so this is great!

Regarding tests, I'm definitely open to adding tests to the library. I just haven't had a chance to come back to this in a while.

* @param lat Latitude
* @param lon Longitude
*/
const lookupDataPoint = (packet: GRIBPacket, lat: number, lon: number): number | null => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain a bit what this function would be used for?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intent was to have a way to get data associated with certain lat, lon from the packet. I wasn't able to find anything for this that's currently in the library.

What's your view on this?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's definitely something that is needed, however, it looks like this would only be compatible with GRIBs that utilize Grid Def Template 3.0.

For compatibility, I feel like this function should first check that the packet utilizes a compatible Grid Template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants